package com.pet.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TaskInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "task_info")
public class TaskInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String taskId;
	private String taskName;
	private String taskDesc;
	private String taskType;
	private Integer taskInteger;
	private Integer taskTime;
	private String taskGuide;
	private String taskBtnText;
	private String state;
	// Constructors

	/** default constructor */
	public TaskInfo() {
	}

	/** minimal constructor */
	public TaskInfo(String taskId, String taskType, Integer taskInteger,
			Integer taskTime) {
		this.taskId = taskId;
		this.taskType = taskType;
		this.taskInteger = taskInteger;
		this.taskTime = taskTime;
	}

	/** full constructor */
	public TaskInfo(String taskId, String taskName, String taskDesc,
			String taskType, Integer taskInteger, Integer taskTime,
			String taskGuide, String taskBtnText) {
		this.taskId = taskId;
		this.taskName = taskName;
		this.taskDesc = taskDesc;
		this.taskType = taskType;
		this.taskInteger = taskInteger;
		this.taskTime = taskTime;
		this.taskGuide = taskGuide;
		this.taskBtnText = taskBtnText;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "task_id", nullable = false, length = 20)
	public String getTaskId() {
		return this.taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	@Column(name = "task_name", length = 32)
	public String getTaskName() {
		return this.taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	@Column(name = "task_desc", length = 512)
	public String getTaskDesc() {
		return this.taskDesc;
	}

	public void setTaskDesc(String taskDesc) {
		this.taskDesc = taskDesc;
	}

	@Column(name = "task_type", nullable = false, length = 20)
	public String getTaskType() {
		return this.taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	@Column(name = "task_integer", nullable = false)
	public Integer getTaskInteger() {
		return this.taskInteger;
	}

	public void setTaskInteger(Integer taskInteger) {
		this.taskInteger = taskInteger;
	}

	@Column(name = "task_time", nullable = false)
	public Integer getTaskTime() {
		return this.taskTime;
	}

	public void setTaskTime(Integer taskTime) {
		this.taskTime = taskTime;
	}

	@Column(name = "task_guide", length = 128)
	public String getTaskGuide() {
		return this.taskGuide;
	}

	public void setTaskGuide(String taskGuide) {
		this.taskGuide = taskGuide;
	}

	@Column(name = "task_btn_text", length = 128)
	public String getTaskBtnText() {
		return this.taskBtnText;
	}

	public void setTaskBtnText(String taskBtnText) {
		this.taskBtnText = taskBtnText;
	}

	@Column(name = "state", length = 10)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

}